+Fri Dec 4 00:50:12 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkctree.c (gtk_ctree_export_to_gnode): fixed for-loop.
+
+ * gtk/gtkclist.c
+ (gtk_clist_set_column_visibility)
+ (gtk_clist_column_titles_active)
+ (gtk_clist_column_titles_active)
+ (gtk_clist_column_title_passive)
+ (gtk_clist_column_title_active): few additional tests whether
+ column->button != NULL
+
Thu Dec 3 16:49:18 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (DROP_ABORT_TIME): Changed to 5 min
+Fri Dec 4 00:50:12 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkctree.c (gtk_ctree_export_to_gnode): fixed for-loop.
+
+ * gtk/gtkclist.c
+ (gtk_clist_set_column_visibility)
+ (gtk_clist_column_titles_active)
+ (gtk_clist_column_titles_active)
+ (gtk_clist_column_title_passive)
+ (gtk_clist_column_title_active): few additional tests whether
+ column->button != NULL
+
Thu Dec 3 16:49:18 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (DROP_ABORT_TIME): Changed to 5 min
+Fri Dec 4 00:50:12 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkctree.c (gtk_ctree_export_to_gnode): fixed for-loop.
+
+ * gtk/gtkclist.c
+ (gtk_clist_set_column_visibility)
+ (gtk_clist_column_titles_active)
+ (gtk_clist_column_titles_active)
+ (gtk_clist_column_title_passive)
+ (gtk_clist_column_title_active): few additional tests whether
+ column->button != NULL
+
Thu Dec 3 16:49:18 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (DROP_ABORT_TIME): Changed to 5 min
+Fri Dec 4 00:50:12 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkctree.c (gtk_ctree_export_to_gnode): fixed for-loop.
+
+ * gtk/gtkclist.c
+ (gtk_clist_set_column_visibility)
+ (gtk_clist_column_titles_active)
+ (gtk_clist_column_titles_active)
+ (gtk_clist_column_title_passive)
+ (gtk_clist_column_title_active): few additional tests whether
+ column->button != NULL
+
Thu Dec 3 16:49:18 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (DROP_ABORT_TIME): Changed to 5 min
+Fri Dec 4 00:50:12 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkctree.c (gtk_ctree_export_to_gnode): fixed for-loop.
+
+ * gtk/gtkclist.c
+ (gtk_clist_set_column_visibility)
+ (gtk_clist_column_titles_active)
+ (gtk_clist_column_titles_active)
+ (gtk_clist_column_title_passive)
+ (gtk_clist_column_title_active): few additional tests whether
+ column->button != NULL
+
Thu Dec 3 16:49:18 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (DROP_ABORT_TIME): Changed to 5 min
+Fri Dec 4 00:50:12 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkctree.c (gtk_ctree_export_to_gnode): fixed for-loop.
+
+ * gtk/gtkclist.c
+ (gtk_clist_set_column_visibility)
+ (gtk_clist_column_titles_active)
+ (gtk_clist_column_titles_active)
+ (gtk_clist_column_title_passive)
+ (gtk_clist_column_title_active): few additional tests whether
+ column->button != NULL
+
Thu Dec 3 16:49:18 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (DROP_ABORT_TIME): Changed to 5 min
+Fri Dec 4 00:50:12 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkctree.c (gtk_ctree_export_to_gnode): fixed for-loop.
+
+ * gtk/gtkclist.c
+ (gtk_clist_set_column_visibility)
+ (gtk_clist_column_titles_active)
+ (gtk_clist_column_titles_active)
+ (gtk_clist_column_title_passive)
+ (gtk_clist_column_title_active): few additional tests whether
+ column->button != NULL
+
Thu Dec 3 16:49:18 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkdnd.c (DROP_ABORT_TIME): Changed to 5 min
{
GTK_CLIST_SET_FLAG (clist, CLIST_SHOW_TITLES);
if (clist->title_window)
- gdk_window_show (clist->title_window);
+ gdk_window_show (clist->title_window);
gtk_widget_queue_resize (GTK_WIDGET (clist));
}
}
{
GTK_CLIST_UNSET_FLAG (clist, CLIST_SHOW_TITLES);
if (clist->title_window)
- gdk_window_hide (clist->title_window);
+ gdk_window_hide (clist->title_window);
gtk_widget_queue_resize (GTK_WIDGET (clist));
}
}
if (column < 0 || column >= clist->columns)
return;
+ if (!clist->column[column].button)
+ return;
if (!GTK_WIDGET_SENSITIVE (clist->column[column].button) ||
!GTK_WIDGET_CAN_FOCUS (clist->column[column].button))
if (column < 0 || column >= clist->columns)
return;
+ if (!clist->column[column].button)
+ return;
if (GTK_WIDGET_SENSITIVE (clist->column[column].button) ||
GTK_WIDGET_CAN_FOCUS (clist->column[column].button))
g_return_if_fail (GTK_IS_CLIST (clist));
for (i = 0; i < clist->columns; i++)
- if (clist->column[i].button)
- gtk_clist_column_title_active (clist, i);
+ gtk_clist_column_title_active (clist, i);
}
void
g_return_if_fail (clist != NULL);
g_return_if_fail (GTK_IS_CLIST (clist));
+ if (!GTK_CLIST_SHOW_TITLES (clist))
+ return;
+
for (i = 0; i < clist->columns; i++)
- if (clist->column[i].button)
- gtk_clist_column_title_passive (clist, i);
+ gtk_clist_column_title_passive (clist, i);
}
void
}
clist->column[column].visible = visible;
- if (visible)
- gtk_widget_show (clist->column[column].button);
- else
- gtk_widget_hide (clist->column[column].button);
+
+ if (clist->column[column].button)
+ {
+ if (visible)
+ gtk_widget_show (clist->column[column].button);
+ else
+ gtk_widget_hide (clist->column[column].button);
+ }
}
void
{
GtkCTreeNode *work;
GNode *gnode;
- GNode *new_sibling;
gint depth;
g_return_val_if_fail (ctree != NULL, NULL);
if (parent)
g_node_insert_before (parent, sibling, gnode);
- for (work = GTK_CTREE_ROW (node)->children, new_sibling = NULL; work;
- work = GTK_CTREE_NODE_NEXT (work))
+ if (!GTK_CTREE_ROW (node)->is_leaf)
{
- sibling = gtk_ctree_export_to_gnode (ctree, gnode, new_sibling,
- work, func, data);
- if (sibling)
- new_sibling = sibling;
+ GNode *new_sibling = NULL;
+
+ for (work = GTK_CTREE_ROW (node)->children; work;
+ work = GTK_CTREE_ROW (work)->sibling)
+ new_sibling = gtk_ctree_export_to_gnode (ctree, gnode, new_sibling,
+ work, func, data);
+
+ g_node_reverse_children (gnode);
}
- g_node_reverse_children (gnode);
return gnode;
}